﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %> 
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CreateSurveyUserControl.ascx.cs" Inherits="JM.JCY.SharePointComponent.Survey.CreateSurvey.CreateSurveyUserControl" %>
<div>
    <table class="main">
        <tr>
        
            <td valign="top" width="100%" runat="server" id="tdContent">
                <table class="content" width="98%">
                    <tr>
                        <td colspan=3>  <h2><img src="/_layouts/JM.JCY.Resource/images/投票大.ico" width="32"/>
                          
                                在线调查 - 创建一个新的调查</h2>
                        </td>
                    </tr>
                    <tr><td  colspan=3><br /><hr /></td></tr>
                    <tr>
                        <td>
                            <b>调查名称</b>
                        </td>
                        <td>
                        ：
                        </td>

                        <td>
                            <asp:TextBox ID="txtSurveyName" runat="server" Width="320"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                ControlToValidate="txtSurveyName" Display="Dynamic" 
                                ErrorMessage="RequiredFieldValidator" ValidationGroup="CreateSurvey">请输入调查的名称！</asp:RequiredFieldValidator>
                        </td>
                    </tr>

                       <tr>
                        <td>
                            <b>调查描述</b>
                        </td>
                        <td>
                        ：
                        </td>

                        <td>
                            <asp:TextBox ID="txtSurveyDescript" runat="server" Width="320" Rows="5" 
                                TextMode="MultiLine"></asp:TextBox>
                        </td>
                    </tr>
               
                    <tr>
                    <td colspan=3>
                    <br />
                    <hr />
                    </td>
                    </tr>
                    <tr><td colspan=3>
                      
                               <asp:GridView ID="gvBC" runat="server" AutoGenerateColumns="False" BorderWidth="0px"
                                                GridLines="Horizontal" CssClass="altrowstablebc" Width="100%" 
                                   OnRowDataBound="gvBC_DataBound" EnableModelValidation="True">
                                                <Columns>
                                                    <asp:TemplateField ShowHeader="False">
                                                        <ItemTemplate>
                                                            <asp:Literal ID="ltRedirect" runat="server"></asp:Literal>
                                                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                            <asp:Literal ID="ltDesc" runat="server"></asp:Literal>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                            </asp:GridView>
                   
                    </td></tr>
                    <tr><td colspan=3><asp:Label ID="lbMessage" runat="server" Text="" ForeColor="#CC3300" Font-Size="Medium"></asp:Label></td></tr>
                    <tr>
                       <td>
                        
                        </td>

                        <td>
                        
                        </td>
                    <td align="right">
                        
                      <asp:ImageButton ID="imgCreateSurvey" runat="server" 
                            ImageUrl="~/_layouts/JM.JCY.Resource/images/confirm.png" 
                            onclick="imgCreateSurvey_Click" ValidationGroup="CreateSurvey" />
                     <asp:ImageButton ID="ImageButton1" runat="server" 
                            ImageUrl="~/_layouts/JM.JCY.Resource/images/cancel.png" 
                            onclick="ImageButton1_Click" CausesValidation="False" />
                    </td>
                      
                    </tr>
                </table>
            </td>
        </tr>
        
    </table>
</div>